from django.urls import path
from itpay.server_admin.view.agency import agency_views, agency_recharge_view, receipt_view, blacklist_view

urlpatterns = [
    # 商户管理
    path('', agency_views.AgencyView.as_view()),
    path('<int:agency_id>/', agency_views.AgencyDetailView.as_view()),
    path('recharge_order/', agency_recharge_view.AgencyRechargeOrderView.as_view()),
    path('recharge_order/<int:order_id>/agree/', agency_recharge_view.AgencyRechargeAgreeView.as_view()),
    path('recharge_order/<int:order_id>/refuse/', agency_recharge_view.AgencyRechargeRefuseView.as_view()),
    path('recharge_order/<int:order_id>/chase/', agency_recharge_view.AgencyChaseAgreeView.as_view()),

    # 收款账户管理
    path('receipt_conf/', receipt_view.ReceiptConfView.as_view()),
    path('receipt_conf/<int:conf_id>/', receipt_view.ReceiptConfDetailView.as_view()),
    path('receipt_addresses/', receipt_view.ReceiptAddressListView.as_view()),
    path('receipt_addresses/<int:receipt_id>/', receipt_view.ReceiptAddressDetailView.as_view()),
    path('receipt_addresses/<int:receipt_id>/status/', receipt_view.ReceiptAddressStatusView.as_view()),

    path('complain/', agency_views.ComplaintView.as_view()),
    path('complain/<int:complain_id>/', agency_views.ComplaintDetailView.as_view()),
    path('complain/handle/<int:complain_id>/', agency_views.HandleComplaintView.as_view()),
    path('reset_password/<int:agency_id>/', agency_views.ResetPasswordAgency.as_view()),

    # 报表
    # path('agency_report/', agency_recharge_view.AgencyReportView.as_view()),
    # path('agency_daily_report/', agency_recharge_view.AgencyDailyReportView.as_view()),
    # path('agency_report/export/', agency_recharge_view.AgencyReportExportView.as_view()),

    path('get_agency_stats_report/', agency_recharge_view.AgencyStatsReportView.as_view()),
    path('get_inner_agency_stats_report/', agency_recharge_view.InnerAgencyStatsReportView.as_view()),

    #黑名单
    path('blacklist/', blacklist_view.BlackListView.as_view()),
]
